﻿using System;
using System.Collections.ObjectModel;

namespace MyOS.Models
{
    [Serializable]
    public class FileTreeViewItemModel
    {
        public FileTreeViewItemModel(string fileName, char fileType, string icon)
        {
            FileName = fileName;
            Icon = icon;
            TypeName = fileType;
            MenuItems = new ObservableCollection<FileTreeViewItemModel>();
        }

        public FileTreeViewItemModel()
        {
        }

        public string FileName { get; set; }
        public string Icon { get; set; }
        public char TypeName { get; set; }
        public string ExtensionName { get; set; }
        public string Attribute { get; set; }
        public int StartBlockNum { get; set; }
        public int Length { get; set; }
        public byte permission { get; set; }
        private string _searchText { get; set; }

        public string createTime { get; set; }

        public ObservableCollection<FileTreeViewItemModel> MenuItems { get; set; }
    }
}